<?php
/**
 *  学校证照资质
 */

use yii\helpers\Html;
use common\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model backend\models\School */
?>
   
<table class="table table-hover table-bordered">
    <tr>
        <th>序号</th>
        <th>证照资质名称</th>
        <th>证照资质类别</th>
        <th>获得时间</th>
        <th>登记时间</th>
        <th>影印文件</th>
    </tr>
    <?php 
    //if($model->schoolCertificates) 
        foreach($model->schoolCertificates as $cert){ 
            $idx++; 
    ?>
    <tr>
        <td><?= $idx ?></td>
        <td><?= Html::encode($cert->ZZMC) ?></td>
        <td><?= Html::encode($cert->ZZLB) ?></td>
        <td><?= Html::encode($cert->HDSJ) ?></td>
        <td><?= Html::encode($cert->DJSJ) ?></td>
        <td><?= Html::a(basename($cert->WJ), '@web/'.$cert->WJ, ['target'=>'_blank']) ?></td>
    </tr>
    <?php } ?>
</table>

